export const BaseResModel = {
  success: {
    type: "boolean",
    description: "是否请求成功",
    enum: [true, false],
    example: true
  },
  message: {
    type: "string",
    description: "异常信息",
    example: null
  },
  code: {
    type: "number",
    description: "请求结果码",
    example: 1
  },
  timestamp: {
    type: "number",
    description: "响应时间",
    example: new Date().valueOf()
  },
  data: {
    type: "number",
    description: "请求数据",
    example: 0
  }
};

export const BasePageReqModel = {
  current: {
    type: "number",
    desciption: "当前页",
    example: 1
  },
  pageSize: {
    type: "number",
    desciption: "每页条数",
    example: 1
  }
};
